﻿namespace EyeOpen.Data.EntityFramework
{
	using System.Data.Entity;

	internal class DatabaseWrapper 
		: IDatabase
	{
		private readonly DbContext dbContext;

		public DatabaseWrapper(DbContext dbContext)
		{
			this.dbContext = dbContext;
		}

		public bool Exists()
		{
			return
				this.dbContext.Database.Exists();
		}

		public void Delete()
		{
			this.dbContext.Database.Delete();
		}

		public void Create()
		{
			this.dbContext.Database.Create();
		}
	}
}
